Mega Code Archive
Linux
1) A very simple shell
2) Appending two files
3) Convert a time value to and from UTC time
4) Convert a UTC time value
5) Convert unix to dos newline
6) Copy file using mmap()
7) Create [alpha]sorted directory listing
8) Create temporary file
9) Fcntl, locking files
10) Get parent pid
11) Getopt example
12) Node, machine, version, etc.. info
13) Print some general file info
14) Recursive directory walk
15) Regular expression
16) Show some pipe usage
17) Show,access enviroment vars
18) Signal, catch Ctrl-C
19) Some cd-rom functions
20) Strcat, concatenate strings, alloc mem
21) Syslog hello
22) System uptime
23) Terminal password example
24) Userinfo on x os from C
25) Using pipes as file streams, fdopen()
26) Using the terminfo database
27) Va_arg, variable argument lists
28) Va_arg, vsnprintf(), concatenate strings
29) What day of the week is July 4, 2001